package com.example.makerspace.forest;

import com.dtflys.forest.annotation.DataParam;
import com.dtflys.forest.annotation.Get;
import com.dtflys.forest.annotation.Request;
import com.example.makerspace.domain.UserDO;

import java.util.List;
import java.util.Map;

public interface MyClient{

    @Request(url = "http://ditu.amap.com/service.regeo",
              dataType = "json")
    Map  getLocation(@DataParam("longitude")String longitude,@DataParam("latitude")String latitude);

    @Request(url = "http://baidu.com")
    String simpleRequest();
}
